﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;

namespace QLCH_ANUONG.Forms
{
    public partial class frmBaoCaoChiTiet : Form
    {
        public frmBaoCaoChiTiet()
        {
            InitializeComponent();
        }

        private void frmBaoCaoChiTiet_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dtsQLAU.proc_load_baocaotongketchitiet' table. You can move, or remove it, as needed.
            this.proc_load_baocaotongketchitietTableAdapter.Fill(this.dtsQLAU.proc_load_baocaotongketchitiet);
            // TODO: This line of code loads data into the 'dtsBAOCAOCHITIET.proc_load_baocaotongketchitiet' table. You can move, or remove it, as needed.
            
            


        }

        private void butIn_Click(object sender, EventArgs e)
        {
            try
            {
               // string strSQL = "exec proc_load_baocaotongketchitiet";
                xtrBANGLUONGCHITIET xtr = new xtrBANGLUONGCHITIET();

              //  SqlCommand command = new SqlCommand(strSQL, clsMain.flexConn.fcSQLConn);
              //  SqlDataAdapter adapter = new SqlDataAdapter(command);
              //  DataSet ds = new DataSet();
               // adapter.Fill(ds);
                //xtr.DataAdapter = this.proc_load_baocaotongketchitietTableAdapter;
                //xtr.DataAdapter = adapter;
                xtr.ShowPreview();

            }
            catch (Exception ex)
            { 
                MessageBox.Show("Button In Click \n" + ex.ToString());
            }
        }
    }
}
